# ==========================================
# © 2020 EExuke. All Rights Reserved.
# ==========================================

DIR_SRC = ./src
INC_SRC = ./inc

SRC = $(wildcard ${DIR_SRC}/*.c)

LIB_TARGET = libmyApi.so

CC = gcc
CFLAGS = -g -Wall -I$(INC_SRC)
SHARED = -shared -fPIC

#LIBS += 

${LIB_TARGET}:
	$(warning Building $(LIB_TARGET) ...)
	@$(CC) $(DIR_SRC)/*.c $(CFLAGS) $(SHARED) -o $(LIB_TARGET)

# Prevent naming conflicts such as the existence of a file named clean.
.PHONY: clean

clean:
	@rm -rf $(LIB_TARGET)

